package com.xal.config;

import com.xal.mapper.StudentMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @program: Swagger2
 * @author: 邢奥林
 * @create: 2023-04-12 18:40
 **/
@Component //交于spring容器该类对象
public class QuarzConfig {
    @Autowired
    private StudentMapper studentMapper;
    @Scheduled(cron="0/5 * * * * ? ")
    public void test(){

        System.out.println("----------------------");
    }
}
